﻿using System;

namespace Boxi.Model
{
    public struct MoveHistoryModel : IMove
    {
#region IMove
        /// <summary>
        /// Index of Move
        /// </summary>
        public Byte MoveID
        {
            get
            {
                return _moveID;
            }
        }
        private Byte _moveID;

        /// <summary>
        /// Index of Move
        /// </summary>
        public Byte MoveMadeOrder
        {
            get
            {
                return _moveMadeOrder;
            }
        }
        private Byte _moveMadeOrder;

        /// <summary>
        /// Index of First Point
        /// </summary>
        public Byte FirstPoint
        {
            get
            {
                return _firstPoint;
            }
        }
        private Byte _firstPoint;

        /// <summary>
        /// Index of Secound Point
        /// </summary>
        public Byte SecondPoint
        {
            get
            {
                return _secondPoint;
            }
        }
        private Byte _secondPoint;

#endregion
        /// <summary>
        /// Index of Move
        /// </summary>
        public Byte[] Points
        {
            get
            {
                return _points;
            }
            set
            {
                _points = value;
            }
        }
        private Byte[] _points;

        /// <summary>
        /// Index of Player
        /// </summary>
        public SByte PlayerID
        {
            get
            {
                return _playerID;
            }
        }
        private SByte _playerID;

        public MoveHistoryModel(MoveModel move, SByte playerID, Byte[] points)
        {
            _moveID = move.MoveID;
            _firstPoint = move.FirstPoint;
            _secondPoint = move.SecondPoint;
            _moveMadeOrder = move.MoveMadeOrder;

            _playerID = playerID;
            _points = points;
        }
    }
}
